-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for Odin's formatter #9537
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does the language server support auto-formatting? If so then let's just enable auto-format
rather than adding an external formatter config
The language server does support auto-formatting, however |
If you have an external formatter and the language server installed, we currently prefer the formatter even though it's likely less efficient than the language server computing and sending the edits (since we need to shell out and then generate the edits between the old and new text). I think this comes up with other languages though (Zig IIRC) so I'll make a separate issue and let's merge this as-is 👍 (#9543) |
Odin's language server also comes with a formatter, so it would be nice to make use of it.